using Newtonsoft.Json;
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "应收账款-销司",TableName = "cw_xs_yszk")]
[Table("cw_xs_yszk")]
    public partial class cwXSYszk:BaseEntity
    {
        /// <summary>
       ///销司应收账款表
       /// </summary>
       [Key]
       [Display(Name ="销司应收账款表")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid cw_xs_yszk_id { get; set; }

       /// <summary>
       ///应收日期
       /// </summary>
       [Display(Name ="应收日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? duedate { get; set; }

       /// <summary>
       ///赛道
       /// </summary>
       [Display(Name ="赛道")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string trackname { get; set; }

       /// <summary>
       ///分类
       /// </summary>
       [Display(Name ="分类")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string category { get; set; }

       /// <summary>
       ///年初数
       /// </summary>
       [Display(Name ="年初数")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? beginyearnum { get; set; }

       /// <summary>
       ///年末应收
       /// </summary>
       [Display(Name ="年末应收")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? endyearreceivable { get; set; }

       /// <summary>
       ///客户
       /// </summary>
       [Display(Name ="客户")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string customer { get; set; }

       /// <summary>
       ///月应收
       /// </summary>
       [Display(Name ="月应收")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? monthreceivable { get; set; }

       /// <summary>
       ///是否逾期
       /// </summary>
       [Display(Name ="是否逾期")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string isoverdue { get; set; }

       /// <summary>
       ///是否代垫
       /// </summary>
       [Display(Name ="是否代垫")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string iscushion { get; set; }

       /// <summary>
       ///代垫类型
       /// </summary>
       [Display(Name ="代垫类型")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string cushiontype { get; set; }

       /// <summary>
       ///收款政策
       /// </summary>
       [Display(Name ="收款政策")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string collectionpolicy { get; set; }

       /// <summary>
       ///账期
       /// </summary>
       [Display(Name ="账期")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string accountperiod { get; set; }

       /// <summary>
       ///存在的问题
       /// </summary>
       [Display(Name ="存在的问题")]
       [MaxLength(5000)]
       [Column(TypeName="varchar(5000)")]
       [Editable(true)]
       public string problem { get; set; }

       /// <summary>
       ///措施
       /// </summary>
       [Display(Name ="措施")]
       [MaxLength(5000)]
       [Column(TypeName="varchar(5000)")]
       [Editable(true)]
       public string measure { get; set; }

       /// <summary>
       ///应收到期日
       /// </summary>
       [Display(Name ="应收到期日")]
       [Column(TypeName="date")]
       [Editable(true)]
       public DateTime? receivabledate { get; set; }

       /// <summary>
       ///开票日期
       /// </summary>
       [Display(Name ="开票日期")]
       [Column(TypeName="date")]
       [Editable(true)]
       public DateTime? invoicingdate { get; set; }

       /// <summary>
       ///责任人
       /// </summary>
       [Display(Name ="责任人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string personliable { get; set; }

       /// <summary>
       ///1-3个月
       /// </summary>
       [Display(Name ="1-3个月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging1 { get; set; }

       /// <summary>
       ///3-6个月
       /// </summary>
       [Display(Name ="3-6个月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging2 { get; set; }

       /// <summary>
       ///6-12个月
       /// </summary>
       [Display(Name ="6-12个月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging3 { get; set; }

       /// <summary>
       ///1-2年
       /// </summary>
       [Display(Name ="1-2年")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging4 { get; set; }

       /// <summary>
       ///2-3年
       /// </summary>
       [Display(Name ="2-3年")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging5 { get; set; }

       /// <summary>
       ///3年以上
       /// </summary>
       [Display(Name ="3年以上")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? aging6 { get; set; }

       /// <summary>
       ///N+1月
       /// </summary>
       [Display(Name ="N+1月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? returnedmoney1 { get; set; }

       /// <summary>
       ///N+2月
       /// </summary>
       [Display(Name ="N+2月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? returnedmoney2 { get; set; }

       /// <summary>
       ///N+3月
       /// </summary>
       [Display(Name ="N+3月")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? returnedmoney3 { get; set; }

       /// <summary>
       ///账龄(天)
       /// </summary>
       [Display(Name ="账龄(天)")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? agingaccount { get; set; }

       /// <summary>
       ///大区
       /// </summary>
       [Display(Name ="大区")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string largeregion { get; set; }

       /// <summary>
       ///车架号
       /// </summary>
       [Display(Name ="车架号")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string vin { get; set; }

       /// <summary>
       ///车型
       /// </summary>
       [Display(Name ="车型")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string vehicletype { get; set; }

       /// <summary>
       ///欠款类型
       /// </summary>
       [Display(Name ="欠款类型")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string arreartype { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? quantity { get; set; }

       /// <summary>
       ///开票价格
       /// </summary>
       [Display(Name ="开票价格")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? invoiceprice { get; set; }

       /// <summary>
       ///2023年核销小计
       /// </summary>
       [Display(Name ="2023年核销小计")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? writeoffsubtotal { get; set; }

       /// <summary>
       ///开票及欠款说明
       /// </summary>
       [Display(Name ="开票及欠款说明")]
       [MaxLength(5000)]
       [Column(TypeName="varchar(5000)")]
       [Editable(true)]
       public string billarredescription { get; set; }

       /// <summary>
       ///清收责任组
       /// </summary>
       [Display(Name ="清收责任组")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       [Editable(true)]
       public string collectresponsibgroup { get; set; }

       /// <summary>
       ///是否实销
       /// </summary>
       [Display(Name ="是否实销")]
       [MaxLength(4)]
       [Column(TypeName="varchar(4)")]
       [Editable(true)]
       public string isactualsale { get; set; }

       /// <summary>
       ///是否属于863专项
       /// </summary>
       [Display(Name ="是否属于863专项")]
       [MaxLength(4)]
       [Column(TypeName="varchar(4)")]
       [Editable(true)]
       public string isbelongsspecial { get; set; }

       /// <summary>
       ///是否审核
       /// </summary>
       [Display(Name ="是否审核")]
       [JsonIgnore]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int isapproved { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(255)]
       [Column(TypeName="varchar(255)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyDate { get; set; }

       
    }
}
